<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>网站信息</title>  
    <link rel="stylesheet" href="__STATIC__/admin/css/pintuer.css">
    <link rel="stylesheet" href="__STATIC__/admin/css/admin.css">
    <script src="__STATIC__/admin/js/jquery.js"></script>
    <script src="__STATIC__/admin/js/pintuer.js"></script>
    <!-- 配置文件 -->
    <script type="text/javascript" src="__STATIC__/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="__STATIC__/ueditor/ueditor.all.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var ue = UE.getEditor('container');
    </script>  
</head>
<body>

<div class="panel admin-panel margin-top">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>修改内容 </strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="{:url('Column/edit',array('id'=>$list.id))}">   
      <div class="form-group">
        <div class="label">
          <label>栏目名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="name" value="{$list.name}" data-validate="required:请输入栏目名称" />         
          <div class="tips"></div>
        </div>
      </div>
      <!--
      <div class="form-group">
        <div class="label">
          <label>栏目图片：</label>
        </div>
        <div class="field">
          <input type="text" id="url1" name="banner" class="input tips" style="width:25%; float:left;"  value="" data-toggle="hover" data-place="right" data-image="" />
          <input type="button" class="button bg-blue margin-left" id="image1" value="+ 浏览上传"  style="float:left;">
          <div class="tipss">图片尺寸：1920*200</div>
        </div>
      </div>
      -->
      <div class="form-group">
        <div class="label">
          <label>栏目标题：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="title" value="{$list.title}" />         
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>栏目关键字：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="keywords" value="{$list.keywords}"/>         
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>栏目关键字描述：</label>
        </div>
        <div class="field">
          <textarea type="text" class="input" name="description" style="height:100px;" >{$list.description}</textarea>        
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>栏目内容：</label>
        </div>
        <div class="field">
          <!--
            <textarea type="text" class="input" name="content" style="height:100px;" >{$list.content}</textarea>
          -->
          <!-- 加载编辑器的容器 -->
          <script id="container" name="content" type="text/plain" style="height:500px;">{$list.content}</script>   
        </div>
      </div>
    
     <div class="form-group">
        <div class="label">
          <label>显示：</label>
        </div>
        <div class="field">
          <div class="button-group radio">
          
          <label class="button {if condition='$list.isshow eq 1'}active{/if}">
         	  <span class="icon icon-check"></span>             
              <input name="isshow" value="1" type="radio">是             
          </label>             
        
          <label class="button {if condition='$list.isshow eq 0'}active{/if}"><span class="icon icon-times"></span>          	
              <input name="isshow" value="0"  type="radio">否
          </label>         
           </div>       
        </div>
     </div>
      <div class="form-group">
        <div class="label">
          <label>排序：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="sort" value="{$list.sort}"  data-validate="required:,number:排序必须为数字" />
          <div class="tips"></div>
        </div>
      </div>
     <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
</body></html>